package com.itrui.feign.client;

import com.itrui.feign.client.common.Result;
import com.itrui.feign.client.pojo.Address;
import com.itrui.feign.client.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.time.LocalDateTime;
import java.util.List;

@FeignClient("userservice")
public interface UserClient {
    @PutMapping("/user/umoney/{id}/{m}")
    public Boolean updateMoney(@PathVariable("id") Long id, @PathVariable("m") Float m);

    @GetMapping("/user/{account}")
    public Result userInfo(@PathVariable("account") int account);

    @GetMapping("/add/{uid}")
    public Result getAllAddressByAccount(@PathVariable Long uid);
}
